package com.opo5.logisticsmanagement.controller;


import com.opo5.logisticsmanagement.common.R;
import com.opo5.logisticsmanagement.service.IndexPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/index")
@ResponseBody
public class IndexController {
    @Autowired
    private IndexPageService indexPageService;
    @PostMapping("/getCableInfo")
    public R getCableInfo(){
        R r = indexPageService.cablePlan();
        r.setCode(200);
        return r;
    }
}
